package com.xuan.system.service.contest;

import com.xuan.common.core.domain.TableDataInfo;
import com.xuan.system.domain.contest.dto.*;
import com.xuan.system.domain.contest.entity.Contest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuan.system.domain.contest.vo.ContestDetailVo;

/**
* @author ASUS
* @description 针对表【tb_contest(竞赛表)】的数据库操作Service
* @createDate 2024-11-16 22:40:37
*/
public interface ContestService extends IService<Contest> {

    TableDataInfo listContest(ContestQueryDTO contestQueryDTO);

    String addContest(ContestAddDTO contestAddDTO);

    boolean deleteContest(Long contestId);

    boolean editContest(ContestEditDTO contestEditDTO);

    ContestDetailVo getContestDetail(Long contestId);

    boolean addContestQuestion(ContestQuestionAddDTO contestQuestionDTO);

    boolean deleteContestQuestion(Long contestId, Long questionId);

    long publishContest(Long contestId);

    int cancelPublish(Long contestId);
}
